<template>
	<view class="content">
		<navbar title='选品广场'>
		</navbar>
		<view class="content">
			<u-sticky :offset-top="offsetTop">
				<!--   :style="{top: titleTop + 'px'}" -->
				<view class="xuanview">
					<view class="souview">
						<image class="icon_sshui" src="@/pages_client/static/img/icon_sshui.png" mode="" />
						<u-input style="flex: 1;" v-model="keywords" type="text" placeholder='搜索商品名称或关键词' />
						<view class="souname" @click="getClear">搜索</view>
					</view>
					<view class="tuanone">
						<u-tabs style="width: 100%;" :list="classlist" active-color="#1A1A1A" inactive-color="#666666" :is-scroll="true" :current="current" @change="change"></u-tabs>
					</view>
					<view class="tuanone">
						<view class="pai" @click="getnav(1)">
							<text class="painame">综合</text>
							<image class="xicon" v-if="order=='weigh'&&ordertwo==''" src="@/pages_client/static/img/icon_jg.png" />
							<image class="xicon" v-else-if="order=='weigh'&&ordertwo=='asc'" src="@/pages_client/static/img/icon_jgtwo.png" />
							<image class="xicon" v-else-if="order=='weigh'&&ordertwo=='desc'" src="@/pages_client/static/img/icon_jgthree.png" />
							<image class="xicon" v-else src="@/pages_client/static/img/icon_jg.png" />
						</view>
						<view class="pai" @click="getnav(2)">
							<text class="painame">销量</text>
							<image class="xicon" v-if="order=='sales'&&orderthree==''" src="@/pages_client/static/img/icon_jg.png" />
							<image class="xicon" v-else-if="order=='sales'&&orderthree=='asc'" src="@/pages_client/static/img/icon_jgtwo.png" />
							<image class="xicon" v-else-if="order=='sales'&&orderthree=='desc'" src="@/pages_client/static/img/icon_jgthree.png" />
							<image class="xicon" v-else src="@/pages_client/static/img/icon_jg.png" />
						</view>
						<view class="pai" @click="getnav(3)">
							<text class="painame">价格</text>
							<image class="xicon" v-if="order=='price'&&orderfour==''" src="@/pages_client/static/img/icon_jg.png" />
							<image class="xicon" v-else-if="order=='price'&&orderfour=='asc'" src="@/pages_client/static/img/icon_jgtwo.png" />
							<image class="xicon" v-else-if="order=='price'&&orderfour=='desc'" src="@/pages_client/static/img/icon_jgthree.png" />
							<image class="xicon" v-else src="@/pages_client/static/img/icon_jg.png" />
						</view>
						<!-- <view class="pai" @click="getnav(4)">
							<text class="painame">佣金</text>
							<image class="xicon" v-if="order=='server_price'&&orderfive==''" src="@/pages_client/static/img/icon_jg.png" />
							<image class="xicon" v-else-if="order=='server_price'&&orderfive=='asc'" src="@/pages_client/static/img/icon_jgtwo.png" />
							<image class="xicon" v-else-if="order=='server_price'&&orderfive=='desc'" src="@/pages_client/static/img/icon_jgthree.png" />
							<image class="xicon" v-else src="@/pages_client/static/img/icon_jg.png" />
						</view> -->
					</view>
				</view>
				
			</u-sticky>
			<view class="menlist">
				<view class="nodata" v-if="list==''">
					<image class="kzt_img_zwsj" src="@/pages_client/static/mine/img_kzt_sp.png" mode="" />
					<text>暂无商品</text>
				</view>
				<view class="oitem" v-for="(item,index) in list" :key="index">
					<view class="olist" @click.stop="getnewDetail(item)">
						<view class="onav">
							<image class="tu" :src="item.image" />
							<view class="navright">
								<view class="navone">
									<text class="bt ellipsis">{{ item.title }}</text>			
								</view>
								<view class="yugu">
									<view class="yuguleft"  style="flex: 1.5;">
										<text class="yuname huo">进货价</text>
										<text class="jia huo">¥{{ item.price }}</text>
									</view>
									<!-- <view class="yuguleft" style="flex: 1.5;">
										<text class="yuname">佣金</text>
										<text class="jia huo">{{ item.bfb }} <text class="zhuan">赚￥{{ item.server_money }} </text></text>
									</view> -->
									<view class="yuguleft" style="flex: 1.5;">
										<text class="yuname">月销</text>
										<text class="jia huo">{{ item.sales }}</text>
									</view>
									<view class="yuguleft" v-if="item.xuan_min">
										<text class="yuname">最低拿货量</text>
										<text class="jia huo">{{ item.xuan_min }}</text>
									</view>
								</view>
								<!-- <view class="navone" v-if="item.tags">
									<view class="baoyou" v-for="(i,ind) in item.tags">{{i}}</view>
									
								</view> -->
								
							</view>
						</view>
					</view>
					<view class="heview">
						<text style="color: #F97001;font-size: 25rpx;font-weight: 500;" v-if="current==0">当前库存：{{ item.stock }}</text>
						<view class="hename">
							<view v-if="current!=0" style="display: flex;align-items: center;">
								<u-switch size="35" v-model="item.is_show" active-color="#52443B" @change="changeswitch($event,item,index)"></u-switch>
								<!-- 移除橱窗 -->
							</view>
							<view class="btn" v-if="current==0" @click.stop="getjiayi(item,2)">移除橱窗</view>
							<view class="btn fukuan" v-if="current!=0&&item.goods_nums==0" @click.stop="gettihuo(item,index)" >加入橱窗</view>
							<!-- <view class="btn" v-if="current!=0&&item.is_add == 1"  >已加入橱窗</view> -->
							<u-number-box style="margin-left: 20rpx;" v-if="current!=0&&item.goods_nums!=0" v-model="item.goods_nums" @change="changenum($event,item)"></u-number-box>
						</view>
					</view>
				</view>
				<u-loadmore :status="status" v-if="list!=''" @loadmore="loadmore" />
			</view>
		</view>

		<!-- <view class="botview" v-if="isguan">
			<image class="icon_dz_xz_s" src="@/pages_client/static/img/icon_dz_xz_s.png" />
			<text class="quan">全选</text>
			<text class="nums"><text class="numsed">1</text>/3</text>
			<view class="hename" style="margin-left: auto;">
				<view class="btn">删除</view>
				<view class="btn fukuan">置顶</view>
			</view>
		</view> -->
		<view class="botview" v-if="current!=0">
			<view class="tjia" @click="getquqeren">确认</view>
		</view>

		<!-- 筛选 -->
		<u-popup  v-model="shaipopshow" mode="bottom" width="100%" ref="auth" :closeable="true" :mask-close-able="true" :custom="true" :mask-click="false" @close="closeshai">
			<view class="shiapop">
				<view class="shaiview">
					<view class="stit">
						商品类目
					</view>
					<view class="shailist">
						<view class="shaiitem sactive">
							美容养颜
						</view>
						<view class="shaiitem">
							美容养颜
						</view>
						<view class="shaiitem">
							美容养颜
						</view>
						<view class="shaiitem">
							美容养颜
						</view>
					</view>
				</view>
				<view class="shaiview">
					<view class="stit">
						商品类目
					</view>
					<view class="shailist">
						<view class="shaiitem sactive">
							美容养颜
						</view>
						<view class="shaiitem">
							美容养颜
						</view>
						<view class="shaiitem">
							美容养颜
						</view>
						<view class="shaiitem">
							美容养颜
						</view>
					</view>
				</view>
				<view class="botzhi">
					<view class="bzhidin">置顶</view>
					<view class="bzhidin que ml">确定</view>
				</view>
			</view>

			
		</u-popup>	
	</view>
</template>

<script>
	export default {
		components: {
		},
		data() {
			return {
				value:1,
				name:'',
				isguan:false,
				shaipopshow:false,
				tablist: [{
					name: '全部'
				}, {
					name: '待付款'
				}, {
					name: '待发货'
				},{
					name: '待收货'
				}, {
					name: '已完成'
				}],
				current: 0,
				value:1,
				shop_id:'',
				list: [],
				page: 1,
				limit: 10,
				last_page: 1,
				status: "loadmore",
				classitem:{
					id:99
				},
				classlist:[],
				// order:'',
				keywords:'',

				ordertwo:'asc',
				orderthree:'',
				orderfour:'',
				orderfive:'',
				order:'weigh',//排序 比如销量 sales desc /sales asc  
				popid:'',
				popitem:{},
				offsetTop:0,
				titleTop:0
				//asc 从小到大 这个是正序 desc是倒序 排序 综合 weigh 销量 sales 价格 price 距离 distance
			}
		},
		mounted() {
			// #ifdef MP-WEIXIN
			let that = this;
			// 获取胶囊按钮位置信息
			const menuButtonInfo = uni.getMenuButtonBoundingClientRect();
			const { top, height } = menuButtonInfo;
			const statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
			console.log(top)
			// 计算标题需要偏移的位置
			const titleTop = top +Number(44)+ (height - statusBarHeight);
			this.titleTop = titleTop;//设置标题顶部距离
			// this.statusBarHeight = statusBarHeight;//设置状态栏高度
			// #endif
			// #ifdef H5
			this.titleTop = 0;//设置标题顶部距离
			// #endif
			console.log(this.titleTop)
			this.offsetTop = this.titleTop
		},
		onLoad(option) {
			if(option.shop_id){
				this.shop_id = option.shop_id
			}
			this.getcate();//分类
			
		},
		onShow() {
		},
		onReachBottom: function () {
			this.loadmore();
		},
		methods: {
			async getcate() {
				let res = await this.$u.api.getCate({
				});
				let a = {
					id:99,
					name:'我的'
				}
				let shuzu = res
				shuzu = res
				shuzu.unshift(a)
				this.classlist = shuzu
				if(this.classitem==''||!this.classitem){
					this.classitem = this.classlist[0]
				}
				this.getList();//数据合集
			},
			closeteam(){
				this.teampopshow = false
			},
			change(index) {
				this.current = index;
				this.classitem = this.classlist[index]
				this.getClear()
			},
			getdetail(item){
				this.navrouter('/pages_client/mine/OrderDetail')
			},
			closeshai(){
				this.shaipopshow = false
			},
			async getList(){//列表数据
				let ordername = ''
				ordername = this.order+' '+this.ordertwo
				let res = await this.$u.api.getGoodsGouList({
				  limit:this.limit,
				  page:this.page,
				  shop_id:this.shop_id,
				  cid:this.classitem.id,
				  keywords:this.keywords,
				  order:ordername
				});
				this.last_page = res.lastpage
				let list = res.list;
				for(let i in list){
					list[i].goods_nums = 0
					list[i].is_show = list[i].is_show=='1'?true:false
				}
				this.list = this.page == 1 ? list : [...this.list, ...list];	
				if(res.list==''||Number(list.length)<Number(this.limit)||Number(this.page)>Number(this.last_page)){
					this.status = 'nomore';
				}
				console.log(this.list)
				
			},
			loadmore() {
				let page = this.page;
				// let last_page = this.last_page;
				if (this.status == 'loadmore') {
					this.page++;
					this.getList();
				}
			},
			getClear(){
				this.list = []
				this.page = 1,
				this.status= "loadmore"
				this.getList()
			},
			getnav(e){
				if(e == 1){
					//综合
					this.order = 'weigh'

					if(this.ordertwo == ''){
						this.ordertwo = 'asc'
					}else if(this.ordertwo == 'asc'){
						this.ordertwo = 'desc'
					}else if(this.ordertwo == 'desc'){
						this.ordertwo = 'asc'
					}
				}else if(e == 2){
					//销量
					this.order = 'sales'
					if(this.orderthree == ''){
						this.orderthree = 'asc'
					}else if(this.orderthree == 'asc'){
						this.orderthree = 'desc'
					}else if(this.orderthree == 'desc'){
						this.orderthree = 'asc'
					}
				}else if(e == 3){
					//销量
					this.order = 'price'
					if(this.orderfour == ''){
						this.orderfour = 'asc'
					}else if(this.orderfour == 'asc'){
						this.orderfour = 'desc'
					}else if(this.orderfour == 'desc'){
						this.orderfour = 'asc'
					}
				}else if(e == 4){
					//距离
					this.order = 'server_price'
					if(this.orderfive == ''){
						this.orderfive = 'asc'
					}else if(this.orderfive == 'asc'){
						this.orderfive = 'desc'
					}else if(this.orderfive == 'desc'){
						this.orderfive = 'asc'
					}
				}
				this.getClear()
			},
			async getjiayi(item,type){
				//type 1加入橱窗 2移除
				if(type == 1){
					let res = await this.$u.api.addShopGoodsShop({
						shop_id:this.shop_id,
						goods_id:item.id
					});
					this.$u.toast("操作成功");
					let that = this
					setTimeout(() => {
						that.getClear()
					}, 1000);
					
				}else if(type == 2){//移除
					let res = await this.$u.api.delShopGoodsShop({
						shop_id:this.shop_id,
						goods_id:item.id
					});
					this.$u.toast("操作成功");
					let that = this
					setTimeout(() => {
						that.getClear()
					}, 1000);
				}
			},
			async gettihuo(item,index){
				let list = this.list
				// for(let i in list){
				// 	list[i].goods_nums = 0
				// }
				list[index].goods_nums = 1
				this.list = list
				this.popid = item.id
				this.popitem = item
			},
			changenum(e,item){
				this.popitem = item
			},
			async getquqeren(){
				if(!this.popid){
					this.$u.toast("请先加入商品");
					return ;
				}
				let goods = []
				let list = this.list 
				for(let i in list){
					if(list[i].goods_nums!=0){
						let a = {}
						a.goods_id = list[i].id
						a.goods_nums = list[i].goods_nums
						goods.push(a)
					}
				}
				if(goods == ''){
					this.$u.toast("请选择商品");
					return;
				}
				let resd = await this.$u.api.addXuanOrder({
					shop_id:this.shop_id,
					// goods_id:this.popid,
					// goods_nums:this.popitem.goods_nums
					goods:JSON.stringify(goods)
				});
				console.log(resd)
				this.getpay(resd.order_id)
			},
			async getpay(id){
				let res = await this.$u.api.getOrderByXuan({
					order_id:id
				});
				uni.requestPayment({
					appId: res.appid,
					nonceStr: res.nonceStr,
					package: res.package,
					paySign: res.paySign,
					signType: res.signType,
					timeStamp: res.timeStamp,
					success: (e) => {
						console.log(e)
						uni.showToast({
							title: '支付成功',
							icon: 'success',
							duration: 2500,
						})
						setTimeout(() => {
							this.getClear()
						}, 1000);
					},
					fail: (e) => {
						console.log(e)
						this.$u.toast("支付失败");
						// setTimeout(() => {
						// 	this.getClear()
						// }, 1000);
						// uni.switchTab({ url: '/pages/tabbar/my' })
						// uni.showModal({
						//     content: "支付失败,原因为: " + e.errMsg,
						//     showCancel: false
						// })
					}
				})
			},
			async changeswitch(e,item,index){
				console.log(e,item,index)
				if(e){
					let res = await this.$u.api.addShopGoodsShop({
						shop_id:this.shop_id,
						goods_id:item.id
					});
					this.$u.toast("添加成功");
					// let that = this
					// setTimeout(() => {
					// 	that.getClear()
					// }, 1000);
					
				}else if(!e){//移除
					let res = await this.$u.api.delShopGoodsShop({
						shop_id:this.shop_id,
						goods_id:item.id
					});
					this.$u.toast("移除成功");
					// let that = this
					// setTimeout(() => {
					// 	that.getClear()
					// }, 1000);
				}
			},
			getnewDetail(item){
				this.navrouter('/pages_client/twoPage/ShopDetail?type=1'+'&id='+item.id+"&jinhuo=1")
			}
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #f9f9f9;
	}
	.content{
		background-color: #f9f9f9;
		padding-bottom: 130rpx;
		.xuanview{
			display: flex;
			flex-direction: column;
			background-color: #fff;
			padding: 0rpx 30rpx 10rpx;
			// height: 250rpx;
			// position: fixed;
			position: sticky;
			// top: 44px;
			width: 100%;
			z-index: 10;

		}
		.souview{
			display: flex;
			background: #F3F3F3;
			border-radius: 16rpx;
			padding:0 20rpx;
			width: 100%;
			align-items: center;
			.icon_sshui{
				width: 32rpx;
				height: 32rpx;
				margin-right: 10rpx;
				position: relative;
				top: -3rpx;
			}
			.souname{
				width: 120rpx;
				height: 56rpx;
				background: #52443B;
				border-radius: 16rpx;
				margin-left: auto;
				display: flex;
				align-items: center;
				justify-content: center;
				font-weight: bold;
				font-size: 28rpx;
				color: #F9F9F9;
			}
		}
		.tuanone{
			
			display: flex;
			flex-direction: row;
			align-items: center;
			width: 100%;
			margin-top: 10rpx;
			
			.pai{
				flex: 1;
				display: flex;
				flex-direction: row;
				align-items: center;
				justify-content: center;
				.painame{
					font-weight: bold;
					font-size: 26rpx;
					color: #333333;
				}
				.xicon{
					width: 40rpx;
					height: 40rpx;
					margin-left: 4rpx;
				}
				.guanname{
					color: #F90101;
				}
			}
			.tuhead{
				max-width: 80%;
				white-space: nowrap;
				.tuitem{
					padding: 8rpx 20rpx;
					background: #F5F5F5;
					border-radius: 10rpx;
					margin-right: 20rpx;
					font-weight: 500;
					font-size: 26rpx;
					color: #333333;
					display: inline-block;
				}
				.tactive{
					background: #52443B;
					color: #fff;
				}
			}
			.icon_tx{
				margin-left: auto;
				width: 40rpx;
				height: 40rpx;
			}
		}	
	}
	.nlist{
		padding: 20rpx;
		display: flex;
		flex-direction: column;
		.nitem{
			padding: 20rpx 25rpx;
			background: #FFFFFF;
			border-radius: 30rpx;
			.nione{
				display: flex;
				flex-direction: row;
				align-items: center;
				.tous{
					width: 81rpx;
					border-radius: 50%;
					height: 81rpx;
					margin-right: 15rpx;
				}
				
				.niright{
					width: 82%;
					display: flex;
					flex-direction: column;
					.rione{
						display: flex;
						flex-direction: row;
						align-items: center;
						.riname{
							max-width: 80%;
							display: inline-block;
							font-weight: bold;
							font-size: 32rpx;
							color: #333333;
						}
						.hyuan{
							width: 80rpx;
							height: 32rpx;
							background: linear-gradient(-90deg, #272727, #4D4D4D);
							border-radius: 6rpx;
							display: flex;
							align-items: center;
							justify-content: center;
							font-weight: 500;
							font-size: 22rpx;
							color: #FFFFFF;
							margin-left: 10rpx;
						}
						.idname{
							font-weight: 400;
							font-size: 24rpx;
							color: #999999;
						}
						.hui{
							margin-left: 40rpx;
						}

					}
					.mttwo{
						margin-top: 15rpx;
					}
				}
				.comm_icon_next{
					margin-left: auto;
					width: 24rpx;
					height: 24rpx;
				}
			}
			.zheview{
				border-top: 1rpx solid #eee;
				display: flex;
				flex-direction: column;
				margin-top: 20rpx;
				padding-top: 20rpx;
				.zheitem{
					display: flex;
					flex-direction: row;
					flex-wrap: wrap;
					.items{
						width: 50%;
						display: flex;
						flex-direction: row;
						align-items: center;
						margin-bottom: 10rpx;
						.ileft{
							font-weight: 500;
							font-size: 24rpx;
							color: #999999;
						}
						.ival{
							font-weight: 500;
							font-size: 26rpx;
							color: #333333;
						}
					}
				}
				.shengbtn{
					display: flex;
					flex-direction: row;
					justify-content: flex-end;
					padding: 0 20rpx 20rpx 0;
					.sbtn{
						padding: 15rpx 25rpx;
						background: #52443B;
						border-radius: 16rpx 16rpx 16rpx 16rpx;
						font-weight: bold;
						font-size: 28rpx;
						color: #FFFFFF;
						margin-left: 20rpx;
					}
				}
			}
		}
	}
	.botview{
		position: fixed;
		height: 120rpx;
		width: 100%;
		bottom: 0;
		background-color: #fff;
		z-index: 10;
		padding: 0 30rpx;
		display: flex;
		align-items: center;
		.icon_dz_xz_s{
			width: 40rpx;
			margin-right: 10rpx;
			height: 40rpx;
		}
		.quan{
			font-weight: 500;
			font-size: 28rpx;
			color: #666666;
		}
		.nums{
			font-weight: 500;
			font-size: 28rpx;
			color: #808080;
			display: inline-block;
			margin-left: 100rpx;
			.numsed{
				font-weight: 500;
				font-size: 28rpx;
				color: #FF7C41;
			}
		}

		.tjia{
			width: 100%;
			height: 90rpx;
			background: #52443B;
			border-radius: 16rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: bold;
			font-size: 28rpx;
			color: #FFFFFF;
		}
	}
	.menlist{
		padding:20rpx 22rpx 30rpx;
		// margin-top: 125px;
		// //  #ifdef MP-WEIXIN
		// margin-top: 103px;
		// // #endif
	}
	.oitem{
		display: flex;
		flex-direction: column;
		background: #FFFFFF;
		border-radius: 20rpx;
		margin-bottom: 24rpx;
		padding: 30rpx;
		.ohead{
			display: flex;
			flex-direction: row;
			align-items: center;
			margin-bottom: 30rpx;
			.icon_sj{
				width: 30rpx;
				height: 30rpx;
				margin-right: 9rpx;
			}
			.dianname{
				max-width: 70%;
				display: inline-block;
				font-weight: bold;
				font-size: 28rpx;
				color: #272727;
			}
			.zt{
				font-weight: 500;
				font-size: 25rpx;
				color: #FF0050;
			}
		}
		.olist{
			display: flex;
			flex-direction: column;
			.icon_dz_xz_s{
				width: 40rpx;
				margin-right: 20rpx;
				height: 40rpx;
			}
			.onav{
				display: flex;
				flex-direction: row;
				margin-bottom: 20rpx;
				align-items: center;
				.tu{
					width:180rpx;
					height: 180rpx;
					border-radius: 10rpx;
					margin-right: 14rpx;
				}
				.navright{
					width: 68%;
					display: flex;
					flex-direction: column;

					.navone{
						display: flex;
						flex-direction: row;
						margin-bottom: 10rpx;
						.tuan{
							padding: 2rpx 8rpx;
							background: #FF7C41;
							border-radius: 6rpx;
							font-weight: 500;
							font-size: 20rpx;
							color: #FFFFFF;
							margin-right: 10rpx;
						}
						.bt{
							max-width: 100%;
							display: inline-block;
							font-weight: 500;
							font-size: 28rpx;
							color: #222222;
							height: 80rpx;
						}
						.ellipsis {
						display: -webkit-box;
						-webkit-line-clamp: 2; /* 限制行数为2 */
						-webkit-box-orient: vertical;
						overflow: hidden;
						}

						.btmiao{
							max-width: 80%;
							display: inline-block;
							font-weight: 500;
							font-size: 20rpx;
							color: #BBBBBB;
						}
						.jia{
							font-weight: bold;
							font-size: 26rpx;
							color: #1A1A1A;
						}
						.zheng{
							padding: 4rpx 20rpx;
							border-radius: 6rpx;
							border: 1px solid #999999;
							font-weight: 500;
							font-size: 20rpx;
							color: #999999;
						}
					}
					.navone:last-child{
						margin-bottom: 0;
					}
					.shoujia{
						font-weight: 400;
						font-size: 25rpx;
						display: block;
						margin-top: 8rpx;
						color: #1A1A1A;
					}
					.yugu{
						// background: #F9F9F9;
						border-radius: 6rpx;
						display: flex;
						flex-direction: row;
						// padding: 8rpx 20rpx;
						margin: 5rpx 0;
						
						.yuguleft{
							flex: 1;
							max-width: 50%;
							display: flex;
							flex-direction: column;
							justify-content: center;
							align-items: center;
							// border-right: 1rpx solid #eee;
							.yuname{
								font-weight: 500;
								font-size: 20rpx;
								color: #BBBBBB;
							}
							
							.jia{
								font-weight: bold;
								font-size: 30rpx;
								color: #1A1A1A;
								margin-top: 10rpx;
								display: block;
								.jiabai{
									font-weight: 500;
									font-size: 20rpx;
									color: #808080;
									display: inline-block;
									margin-left: 9rpx;
									position: relative;
									top: -2rpx;
								}
								
							}
							.huo{
								color: #F97001;
							}
							.zhuan{
								font-weight: 500;
								font-size: 20rpx;
								color: #F97001;
							}
						}
						.yuguleft:last-child{
							border-right: none;
						}
					}
				}
			}
			.onav:last-child{
				margin-bottom: 0;
			}
			
			.baoyou{
				padding: 3rpx 10rpx;
				border-radius: 2rpx;
				font-weight: 500;
				font-size: 18rpx;
				color: #F97001;
				border: 1px solid #F97001;
				margin-right: 20rpx;
			}
		}
		.heview{
			display: flex;
			flex-direction: column;
			margin-top: 20rpx;
			
		}
	}
	.hename{
		font-weight: 500;
		font-size: 24rpx;
		color: #666666;
		margin: 13rpx 0;
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
	}
	.btn{
		padding: 12rpx 25rpx;
		background: #F3F3F3;
		border-radius: 10rpx;
		font-weight: 500;
		font-size: 26rpx;
		color: #808080;
		margin-left: 20rpx;
		min-width: 160rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.fukuan{
		background: #52443B;
		color: #fff;
		border: none;
	}
	.queren{
		background: #483C38;
		color: #fff;
		border: none;
	}
	.nodata{
		margin: 200rpx auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.kzt_img_zwsj{
			width: 237rpx;
			height: 256rpx;

		}
		text{
			font-weight: 400;
			font-size: 28rpx;
			color: #808080;
			display: block;
			margin-top: 30rpx;
		}
	}
	.shengku{
		font-weight: 500;
		font-size: 28rpx;
		color: #999999;
		display: block;
		margin-top: 8rpx;
	}
	.tablei{
		padding: 10rpx 90rpx 8rpx;
		display: flex;
		flex-direction: row;
		
		.leiitem{
			height: 68rpx;
			background: #F3F3F3;
			border-radius: 34rpx;
			display: flex;
			flex-direction: row;
			width: 100%;
			.tabitem{
				width: 50%;
				height: 100%;
				position: relative;
				display: flex;
				align-items: center;
				justify-content: center;
				font-weight: bold;
				font-size: 32rpx;
				color: #666666;
			}
			.tactive{
				background: #52443B;
				border-radius: 34rpx;
				color: #fff;
			}
		}
	}
	.menitem{
                display: flex;
                flex-direction: row;
                align-items: center;
                background: #FFFFFF;
                border-radius: 24rpx;
                padding: 25rpx;
                margin: 0 30rpx 20rpx;
                .tu{
                    width: 180rpx;
                    height: 180rpx;
                    margin-right: 20rpx;
                    border-radius: 20rpx;
                }
                .menone{
                    display: flex;
                    flex-direction: column;
                    width: 68%;
                    // height: 100%;
                    .menhead{
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        .name{
                            font-weight: bold;
                            font-size: 32rpx;
                            color: #272727;
                        }
                        .yingye{
                            font-weight: 500;
                            font-size: 26rpx;
                            color: #24B924;
                        }
                        .yingtime{
                            font-weight: 500;
                            font-size: 26rpx;
                            color: #333333;
                            display: inline-block;
                            margin-left: 18rpx;
                        }
                        .icon_dw{
                            width:22rpx;
                            height: 24rpx;
                            margin-right: 8rpx;

                        }
                        .ju{
                            font-weight: 500;
                            font-size: 28rpx;
                            color: #1A1A1A;
                        }
                        .juli{
                            margin-left: 30rpx;
                            font-weight: 500;
                            font-size: 24rpx;
                            color: #999999;
                            display: inline-block;
                            max-width: 70%;
                        }
						.tiview{
							margin-left: auto;
							width: 200rpx;
							height: 68rpx;
							background: #52443B;
							border-radius: 16rpx 16rpx 16rpx 16rpx;
							display: flex;
							align-items: center;
							justify-content: center;
							font-weight: bold;
							font-size: 28rpx;
							color: #FFFFFF;
						}
                    }
                    .mennav{
                        margin-top: 35rpx;
                    }
                }
            }
        // }

		// 筛选弹窗
		.shiapop{
			padding: 30rpx;
			border-radius: 30rpx 30rpx 0 0 ;
			background-color: #fff;
			.stit{
				font-weight: bold;
				font-size: 30rpx;
				color: #333333;
				display: block;
				margin-bottom: 30rpx;
			}
			.shailist{
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;
				.shaiitem{
					padding: 16rpx 20rpx;
					background: #F5F5F5;
					border-radius: 10rpx;
					font-weight: 500;
					font-size: 26rpx;
					color: #333333;
					margin: 0 20rpx 20rpx 0;
				}
				.sactive{
					border: 1px solid #FF7C41;
					background: #FFF2ED;
					color: #FF7C41;
				}
			}
			.shaiview{
				margin-bottom: 40rpx;
			}
			.shaiview:last-child{
				margin-bottom: 0;
			}
			.botzhi{
				display: flex;
				margin-top: 50rpx;
				flex-direction: row;
				align-items: center;
				.bzhidin{
					width: 48%;
					height: 91rpx;
					border-radius: 16rpx;
					border: 1px solid #52443B;
					font-weight: 500;
					font-size: 28rpx;
					color: #52443B;
					display: flex;
					align-items: center;
					justify-content: center;

				}
				.que{
					background: #52443B;
					color: #fff;
				}
			}
		}
</style>
